<template>
	<div>
		<form action="/">
			<van-search
				v-model="value"
				show-action
				placeholder="请输入搜索关键词"
				@search="onSearch"
				@cancel="onCancel"
			/>
		</form>
	</div>
</template>

<script>
import { Toast } from "vant";
export default {
	data() {
		return {
			value: "",
			url: null,
		};
	},

	components: {},

	methods: {
		onSearch(val) {
			Toast(val);
		},
		onCancel() {
			Toast("取消");
			this.$router.go(-1);
		},
	},
	created() {},
};
</script>

<style scoped></style>
